#!/bin/bash

cd "`dirname $0`"

echo 'Обновляем БД...' >> /tmp/dnc_setup.log
sudo -u postgres psql LinCash -c "create language plpgsql"
sudo -u postgres psql LinCash < ./db/cyberplat.sql
sudo -u postgres psql Transaction < ./db/transaction.sql

echo "Установка завершена" >> /tmp/dnc_setup.log
